package com.renaud.tvSpy.graphicsTool;

import java.awt.Image;
import java.util.HashMap;
import java.util.Map;

public class ImageProvider {

	private static Map<Integer, Image> images = new HashMap<Integer, Image>();
	public static final int IMG_PAUSE = 1;
	public static final int IMG_TV = 2;
	public static final int IMG_CURSEUR = 3;
	
	static{
		String root = System.getProperty("user.dir");
		try {
			images.put(IMG_CURSEUR, new SimpleImageLoader().getImage(root+"/src/main/resources/images/cursor-icon.png"));
			images.put(IMG_PAUSE, new SimpleImageLoader().getImage(root+"/src/main/resources/images/pause.png"));
			images.put(IMG_TV, new SimpleImageLoader().getImage(root+"/src/main/resources/images/tv-icon.png"));
		} catch (ImageLoadException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
	
	
	
	
	public static Image getImage(int code){
		return images.get(code);
	}
	
	
}
